gh-153083: Defer GC tracking of an array to the end of construction.#153284
Conversation
TSAN ScriptAS-ISTO-BE |
vstinner
left a comment
There was a problem hiding this comment.
There are many methods still calling newarrayobject(). I would prefer to fix all methods at once to defer the GC tracking.
| } | ||
| nbytes = size * descr->itemsize; | ||
| op = (arrayobject *) type->tp_alloc(type, 0); | ||
| op = (arrayobject *) _PyType_AllocNoTrack(type, 0); |
There was a problem hiding this comment.
Should we update tp_alloc slot?
|
Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13, 3.14, 3.15. |
|
Sorry, @corona10, I could not cleanly backport this to |
|
GH-153336 is a backport of this pull request to the 3.15 branch. |
|
Sorry, @corona10, I could not cleanly backport this to |
|
GH-153337 is a backport of this pull request to the 3.14 branch. |
|
GH-153338 is a backport of this pull request to the 3.13 branch. |
Uh oh!
There was an error while loading. Please reload this page.